started really seperating out the postgres implementation of the ESM from the generic ESM
Merge pull request #1 from grahamjenson/master

started really seperating out the postgres implementation of the ESM fro...