updates for postgresql