Added giveRolePermission method
Updated mdbackup plugin
Small fixes