Add book repository and put more functions to base repository.