Changed from PG to SQLITE3
Fixed SQL to use 'lower(username) LIKE (?)' - more portable SQL