agentdata in own file, connection string replaced to config, maybe stop every if not insert into database