Syntax error fix and change default db usage