Fix SQLite support for filename parsing.

The code didn't get the memo about the way we now do support source
filenames and all.