use MySQL instead of PHP to assign groups at plugin activation, fixes #13