Refactored NSDate formatting to be thread safe

* All date formatting is now done using SQLite via the `convertNSDateToISO8601` method
* Tweaked sqlite config to include `SQLITE_CONFIG_MULTITHREAD`