Insert query modification