history.jsp get data from db. complete query by paging.