A first stab at using DBX for database abstraction. Works with Postgres currently.