Add title attribute to group element
Database backend refactoring
Misc. fixes after refactoring