Now checks database type from config