fix populate db