created database models