user right move into database
Refactoring
Merge pull request #3 from Darkspawn/master

User right move into database