Fixing up a bunch.

Fixed parsing POST parameters, log file name now in variable, added some new queries.