Moved Mysql instance to main class.