created database model