Database now saves properly, many other fixes

Able to save to DB any new events, they load on startup as well.
Bug with adding new events, getting duplicatesi n program but not in
database