Changed PrivilegesActivity

using database is working now