Thanks again for your help and the information provided. I can not expand the statemanet about the script not being able to write to the DB as it seems to be nonsense 🙂 Firstly I thought it can not write because it takes so long and happens over and over. But that seems not to be the case.