Hi Steven,
this actually helped a lot!! I did not know I could use the connections-functions in a cronjob as well.
Sorry for the late response, but my computer broke down.
Thank you again for your help and great support!!