Modified to implement postgres adapter and...

...postgres sql changes

567 examples, 0 failures
Coverage report generated for RSpec to /Users/yzhang/the_policy_machine/coverage. 624 / 702 LOC (88.89%) covered.
Passes specs in dalton with this commit on postgres, mysql and memory backends