In ribbon mode click on ribbon tab Home on item Set compare options.
In toolbar/menu mode click in menu Session on menu item Session properties...
There is in the opened dialog window on right side the group Ignore options with item Ignore folders/file types where must be entered test;*.db to ignore the folder test and all files with the file extension .db. Then click at bottom left corner on button OK and Run.
This folder compare session can be saved for re-use later at any time with the same folder compare options.
It is also possible to configure this Ignore folders/file types option also for all folder comparisons with no special ignore options defined in folder compare session properties. In ribbon mode click on ribbon tab Home on item Settings. In toolbar/menu mode click in menu Options on menu item Configurations.... Navigate to Ignore Options (Default) - Folder/Folder Sync and enter on right side for Ignore folders/file types also test;*.db. Close the Configuration with click on button OK.
Best regards from an UC/UE/UES for Windows user from Austria