First commit. MySQL integration, a few changes to the modules.