Fix all user search for compatibility with PG