refactor MySQL configuration

closes #33