No connection to Database for metasploit after update

While having a failure in connecting  to the Database, I’ve found the correct commands to initialize it. This is due to  Kali Linux Network Services Policy that no network services, including database services, run on boot as a default.

DBinit

And to validate:

DBstatus

Manage a metasploit framework database:

msfdb init # initialize the database
msfdb reinit # delete and reinitialize the database
msfdb delete # delete database and stop using it
msfdb start # start the database
msfdb stop # stop the database

Hope this is able to help you if you were stuck!