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.