updates on mysql tpl