This examples shows how to connect and query a SQL database. Retrieved records are mapped to the CSV format and stored in the user-defined directory in the filesystem.