change to generated event to copy files to public_html to avoid running at the same time as writing to database