Only generate tables if they have been defined