Add necessary parameters to upDB function
Reorganize cst-sync.js file