Added support for SQL definition in config