Just done some major optimisation! I scrapped mysql for statistics and I am now using memcached, because all I need is to store literally a few numbers. Mysql isn't designed for loads of inserts, so memcache turns out to be a much better solution!