fixed db syntax