fix db init query