State mysql query

I wrote a mysql_query state which execute the specified query, and store the returned data in either : a file, a grain, a key of a dictionnary type grain.

I'd like to submit it for inclusion in Salt, it may be useful for others.

I need review, and help to write some unit tests for this state, if needed.