add the getAllBook-backend function