--- from: http://rosettacode.org/wiki/SQL-based_authentication note: Database operations