mysql implemented for creation of tables and adding stats, added debug mode to help with any potential bugs that may occur.