Fixing database syntax
Update syntax