configuring to work with postgres