[wip] Working

This is a working branch to add the core functionality.

You can log in the click 'refresh profile' to load the database with all your groups and profiles.