maped database in models