added update functionality, modified create so that it returns the entire object stored, including the id