new ad_query(), re-write find_by_username() and find_by_id()