Refactored db methods into their own class and created tables for percentile values for all stats