changed database models