fix postgres database session usage.  it works now.