More queryDB usage for links module