work on database model