Use db from main query when fetching children with no db specified