Optimized statistics for top share contributions & top hash rate contrib...

...utions.

SQL queries show half the time of original queries.
- Removed unused tables and reused username variable from shares