New procedure to create partitioned tables