Fetches total item statistics from db