fixing ordering problems with the mysql stuffs

There were issues with the ordering done within chef.

For instance, since everything was done in ruby blocks it was pushed to compile time within chef.  So even if I called the java cookbook to install java (and I did) it would never run, because the check java cookbook would fail out.

Basically, running everything at compile time is bad :D

This is just an example of code that worked for me, this cookbook likely needs to be refactored.