postgresql script for osx