MySQL improvements to use a config file and a small schema fix