seperate db-work to cwork