Export DB to temp file on git commit.
If the export fails delete the temp file, otherwise overwrite the tracked file.