Fixed getting stale mysql data. Lots of other stuff