Fix update bug with dbtable, improve performance, improve tests
Add delete, and unfinished test