Allow dumping SQL query when passing DQL on cli

This adds a new commandline option '--show-sql' which will dump out the generated SQL instead of querying the database with query-dql