Adding failure for when there are no records in the query, and adding .csv extension to file name. Also putting .DS_Store in the .gitignore.