finished rename(), insert_tuple(), and insert_view(); cleaned up code and made code compilable