database.entries_from_path: return generator of (entry, filename) pairs

This makes it easier to find out which file could not be parsed.