finally got postgres to work