working on post (done), delete (done) and update functions for models