[#BDKIN-46] - refactor for use query for pagination in EnquiryContrller