added PermissionHandling to Database