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

* Replace '$velocityCount' [DEPRECATED] with '$foreach.count'.
XWIKI-10069: Fix the 'use suggest' in DBList

* Use 'bindValue' on the user input for more security
XWIKI-10069: Fix the 'use suggest' in DBList

* Revert the old code when no field is fill
XWIKI-10069: Fix the 'use suggest' in DBList

* Use '$services.query' instead of '$xwiki.search'