List Users

Created a list user funciton with a query that should work and fixed a
small thing in getHistory