Add postgres library
Merge https://github.com/mrussellclarke/BMAPS-Phase-1