Changed SQL logging to log final SQL instead of pre-substitution SQL

#76 -- more useful to have straight sql than to have to do format substitution in your head