Fixed database load and deletion operations.

Fixed malfunctioning SQLite query statements. Still need to fix event
display.
Merge remote-tracking branch 'origin/GUI' into DB
Fixed automic window closure, created shell window for editing events.
Merged GUI into DB