postgres version for endpoints script
Merge pull request #25 from magwas/master

endpoint script for postgresql