I did not used Google Sheet as Database and I dont see it as a good option for connecting to it via a programming language when taking into consideration any RDBMS or NoSQL if that is needed.
I recommend either PostgreSQL or MongoDB or Cassandra.
It reminded me this - https://www.bbc.com/news/technology-54423988. Sheets are not databases. Be prepared to hit one the issues like this.