Yup, filesystems in general should have a database/SQL interface. I'm currently using CouchDB and Apache Tika to index and search my files. It works but there is no way people who are not programmers would enjoy using such a system. It's extremely inelegant and requires constant context switching and I'd much rather be using an operating system that had all this functionality as part of the filesystem interface.