[ticket/12426] Rework of user search

Trying to resolve some travis issues with @conn.dbal

PHPBB3-12426