Adding support for legacy mysql databases loaded via mysqldump