Fix import mechanism

Fix the case where importing datas and query the current agent in the
same request.

Also now it does not perform self analize before importing data.