added agent recreation
fixed npexceptions and added failed urls
db
multiple writes for project db and subscribtion for project db <-> distributor