Adjusted tests to work with pgsql
Added travis testing on postgres