simplify mysql cookbook