Just a quick note for hosting a DB on a pi (or anything that uses SD cards for the OS), SD cards fail with some regularity, so I strongly suggest getting an NVMe board with a stick of SSD memory to store the actual files, because it’s much more reliable long term for data integrity. SD cards support reading large amounts but writes wear them out more quickly.
You can find great cases that come with the boards (but not the SSD, however that’s very easy to find separately).
Just a quick note for hosting a DB on a pi (or anything that uses SD cards for the OS), SD cards fail with some regularity, so I strongly suggest getting an NVMe board with a stick of SSD memory to store the actual files, because it’s much more reliable long term for data integrity. SD cards support reading large amounts but writes wear them out more quickly.
You can find great cases that come with the boards (but not the SSD, however that’s very easy to find separately).
For RPi 4 I have an Argon (NVMe board sold as accessory): https://argon40.com/products/argon-one-v2-case-for-raspberry-pi-4
And fro RPi 5 I have a Pironman case (NVMe comes as part of the kit): https://www.sunfounder.com/products/pironman-5-nvme-m-2-ssd-pcie-mini-pc-case-for-raspberry-pi-5
I recommend both of those but your use case may vary.