feature - sql query generator