Finally got Postgresql to work