Fix errors when using Postgres.

Not sure if it's worth having Travis try to run tests on multiple databases.  That might require some extra gems and databases to be set up for people who just want to run a test locally.  Any thoughts?