add mysql_query helper here

This goes with my PR in the main infrataster repository to remove the mysql_query helper from there and add it here