Use the correct class name instead of $databaseConfig['type']