[mysql] add test code for db utility.