Added create and update CRUD functions