Abstract out definition of a plugin and implement it for mysql as an example
updated Readme and changed default value of -n option to 0