ADDED ex- und import of the database, sorting of permissions