add log unquoted for printing out specified code; limited uses
finish up support for select queries