Updated views to support array response
Replaced findandupdate with update
Disabled the identity property of the id