Re-add shares archive table for 24h hashrates

This should fix #312 and fix #256 where hashrates are reset on quick rounds.
Users are not able to properly view their past 24h hashrates.

Will be merged once confirmed working.
fixing stmt issue
Fixing pool hashrate graph

Should fix #312 completely.
User proper archive table for union

Addresses #312
Merge pull request #398 from TheSerapher/issue-312-24h-hashrates

Issue 312 24h hashrates
Merge branch 'next' into issue-392