Fixed state names without proper namespacing

Some of the state names were not properly namespaced to 'mysql_xxx' and could have conflicts with other formulas/states.