Fixed all SQLite3 syntax errors.