database: add search by name or ID or favs
database: add search by name or ID or favs

* Returns a table of IDs, with the ID of the object/unit/item/quest as key and true as value.
* If the search string is shorter than the mininum lenght, favourites are returned.

shagu/pfQuest