fix populate db scripts