Fix travis postgres database issues

makes a number of other minor modifications to the toolset

waiting on a full travis run before being merged