sql default values, test fix and TableModel fix