Added create and update CRUD actions and fixed stuff