Data source: http://rosettacode.org/wiki/SQL-based_authentication