minor update

added external config, fixed mysql-reconnection on error