Do not reuse database connection of manager in preferences window but open a database connection in preferences window based on database in manager and listen to signals when it changes to reopen database connection. Add option to enable or disable asking user if the policy for a domain is unknown.