modified loading of db tofix errors