refactoring of commonDB
add test file commonDB_test.tcl
designing tests for commonDB