determine the database model