Add Linux perf to mysql scripts

And other general mysql script cleanups.
Fix refresh stream logic for pgsql
Fix parameter passing for post processing