Fixed sql syntax errors
Switching to a db in progress
Testing the db