Fix travis postgres database issues

makes a number of other minor modifications to the toolset