worked on wrong branch
inserting and updating works properly. going to work on the collection model next