switches to postgress