Abhi, Nishi #699 fixing total patient row count  and refactored getAllPatients methods