extract symbols in db_query