Updated to enable multiple users (if needed)
Updated to use a factory class.
Updated with a config file that has mysql connections and tables.
This allows one to override defaults in the code.