Show in-edit-mode warning when database is locked.
const-ify several methods.
Fix typo canDeleteCurrentGoup() -> canDeleteCurrentGroup().