fix db issue