db syntax fix