Proceed with updating only if search successful

Raising Exception in else part for the CRUD functions to come soon, in another PR :)