fix db populate