updated setup for postgres