Developing borrow history query....not completed.