fixed syntax error and DB name issue