initFirestore function
Implementation
Future<void> initFirestore(String projectId) async {
try {
Firestore.initialize(projectId, useApplicationDefaultAuth: true);
dbRunning = true;
} catch (e) {
dbRunning = false;
log("Failed to initialize Firestore: $e", isError: true);
rethrow;
}
}