Added function to return a JSON encoded representation of all counted items in the database.
Added method to query all items from the database.
Refactored to use new API method
Added methods to format statistics
Fixed query for getting all items by a specific user.
Adapted to API changes