[ticket/12890] Use sql_build_query for generating memberlist query

PHPBB3-12890
[ticket/12890] Pass DBAL to type_base::build_search_clause

Removes DBAL dependency from profilefield's classes

PHPBB3-12890