Bug fix: SQL syntax error caused by a missing space
Exporting single events now works. Multiple event export to follow.