add simple local storage
save record to client db
finish client table
some refactor