Sorted out plpgsql logging, better update way revisions.