Added remote MySQL support

Simply re-configured writer.pl to support remote MySQL connections.