fix local db connection with postgres