regist tw info function for db