TableModel close #1
modified tests and DbCtrl