update Db algorithm
do_name function finished