Refactor update and create

Implement update and create methods #11