almost finish client server (how to know if table is changed?)