fix log, add get db name,add in tpl worning