fix db initial bug