speed-up metadata search by relying on Python regexes rather than SQLite 'like' searches