sql move reverted to original table names