aggegate tables creation