Codeception updates
Changed to an sql database to try and fix the sqlite locking issue
Created new tests for the stats page
Optimised some code
Not working locally - lets see what travis does