adding database model