Added update action on books.

I think if we do another test case then we do not need to go to the database here and only test the output