Configure travis ci to use postgresql

Configures travis ci to use postgresql as the database