Frontend: Warn if unsent events, Backend: txt file to SQLite

Changing the backened to SQLite to allow for better concurrency.
The frontend gains code to warn the user of unsubmitted strokes when
they decide to leave the page.
Add events.sqlite template database.