Normally an ajax app communicates to some server component like a servlet,jsp or ejb. While this component is responsible for the communication the database, you will find yourself in a familiar environment..
I've read the content of the book
here: as far as I can see, this book focus primarily on the client side. The server side handles php, asp.net but not java.