update() added and more efficient search()

Error handling to be done,update() logic to be scrutinized,delete() to be modified