using dict to let mysql query become more convenience.