Now able to connect to a remote database, read data from its tables and write to a local file