Fix for bug #2230, switch hardcoded MySQL to config database type