Convert between Postgres and Ruby types inside the adapter, which allows for a lot of cleanup.
Reorganize the base module somewhat.