safety check, do not refert to variables in onupgrade, purge templates that refer to deleted accounts
since we nearly always throw a runtimexception when this exception is encounter, refactor it, which will allow us to get rid of many try/catch blogs
CSV export and some refactoring
refactor insert of data into method
testing export