fixed the premature ExecuteSQL call.