Changing tablenames to new tables