defined the database model class