fix db not inited bug