Update postgres file