If you are using encrypted DBs it’s possible this is linked to automatic renaming of databases. Have a look and see whether your closed databases have a file-ending .dtSparse (which is how it should be) or .sparseimage (which they should only display when open).
If that isn’t the solution, please post more information, such as how you open those databases which are closed, but grey in the favourites.