Add basic postgres lib

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>