take pgopts directly from cmd line

Taking the postgresql options directly from the command line is more
consistent with how the other sql scripts are used.