Ashwin/Dileep | #000 | Writing database name to completed csv file only if successful.