restore ADOQuery state