Moved REST-CRUD logic to a seperate controller