Added a general db manager to access the database.
Added an comments dialog. Not stored yet.

Minor improvements to usability.