XWIKI-10069: Fix the 'use suggest' in DBList

* Factorize the query execution for the last three cases