fix db clause