master: added separate class for Task process and update db process.