updated database models