Some Important configuration info on Metasploit on Kali Linux 2022 where is the database yml
In Kali Linux 2022, metasploit database.yml is NOT under .msf4 folder.
It is stored at /usr/share/metasploit-framework/config/database.yml
Some commands to verify database status:
db_status
db_disconnect
dc_connect -y /usr/share/metasploit-framework/config/database.yml