What could be the reason why the data is not updated and deleted?
For insert, update, delete use SQLQuery.ExecSQL, for select SQLQuery.Open