fun createTarget(qi: QueryInfo, deleteIfTargetExists: Boolean): Unit
creates the target csv file based on the metadata found in qi. deleteIfTargetExists determines whether the target csv file is deleted if it already exists before creating.