To identify files, I recommend the file command. It is documented at: https://www.man7.org/linux/man-pages/man1/file.1.html
It does more than databases but it should allow you to identify a database file too.