changed code for migration
Merge branch 'biodiv_usergroups' of github.com:strandls/biodiv into biodiv_usergroups