modified database model