Bug 773464 - add proper support for postgresql
Fix typo
Use env var to switch db backends in the unittests.
Add .travis.yml