Fixed SQL to use 'lower(username) LIKE (?)' - more portable SQL