fixing postgresql and travis configuration