Fixes #2230, switch hardcoded MySQL to config database type