added basic MySQL support for matching a token with an IP:PORT with a query

Similar to the target config option, this patch adds a new option that lets you specify a config file with connection information and a query it will use to validate a token.    the word _TOKEN_  in the query will get replaced automatically with the token the person is trying to validate.

TODO: escape the token before passing it to the query.