Make the batter: Whisk together all the dry ingredients (cornmeal, baking soda, salt, sugar if using) in a large bowl. In another bowl, beat the egg (if using) and buttermilk until combined, then mix that into the bowl of dry ingredients. Stir in the melted butter.