database model loading from config