Problem: `*.db` files use empty string as default filetype, which is inconsistent with the rest of the code which uses `nil` instead. Solution: don't pass a default empty string (cherry picked from commit 8bfde69007)
8bfde69007