Adds groups and database initialisation