finish the basic operation of tables