fix db operate