fixed bug in getbooksbycouse and added the implementation or the updatebook