fix Utils Attachment patch for postgresql