Added mysql database functionality and config system.