small check for wrong db syntax