Initial pass at a postgres brain
Merge pull request #713 from danthompson/pg_brain

Add postgres brain