Added functionality to insert rows with updated schema