fix db problem