code refine
update db