DbUtil refactored & Test Script added