add convert the table data to building table sql