Rename table and make sure we delete and create in correct order