configuring to run with postgres