Location of 'notebook' file in Joplin on a Mac

Hello all,

I started using Joplin a couple of weeks ago. I then decided to do a clean install of Mac OS Big Sur. I have several backups of my computer prior to my clean install. My question is where is the database file for any notebooks I created in Joplin on my Mac? Also can the location of that file be changed?