If the database is your choice, I would suggest to check Unity asset store. Most probably there are some "ready to go" solution for Unity. Haven't done anything with Google Firebase Firestore myself, maybe this is something that really will help you, but I would check SQLite libraries for Unity. It is a small and lightweight database in a local file.