chagned database model loading