added the abstraction of the database cursor for the index search, and added the
function for perform search on data pack index