Corrected a sqlite syntax error