The design decision of storing the application a file came from in file metadata, but the URL it came from in an sqlite database ... makes my head hurt.
Not merely pondered upon it for 2 minutes and decided that Apple programmers were idiots for doing so, right?