resolve problems with mysql cookbook