Moved the database manager into a separate file.
Allow displaying events.