move to sub mysql, add test