postgres adapter

Hi Rob, i can see you've started the PostgresAdapter. I've already been working on that for a while but i am not finished yet.
All tests pass but the code still requires some development. I hope it will help.