fixing database load