Let Me try first some simple
DAO basically contains database related methods
In Your case if you create one new class suppose BookDAO
You can put the getBooks() method in that class
and its become your DAO.
Call that method using creating the instant of DAO class.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop