create postgres helper functions for bash_it

Referencing https://github.com/revans/bash-it/issues/369