[WIP] fix failing Travis tests for postgres