remove the sql if it was already stored