REFACTOR allow to use postgres

Add postgres support for tests.

Later, all major databases will be supported through travis, but let
just add environement switches for issue at hand with postgres.

Needed for #15