bug fix db