bug fix db methoods