fixed query for food table seeder