Change the created sql field according to the close event