add the query support for mySQL