Refine update function of DB, that add callback function when success to
call and Modified main and view of controllers