Fix some mysqlized cookbook errors
And a few more errors of different levels of stupidity. Cookbooks seem workable now.
Merge branch 'cookbook_fix' into mysql