Instead of "db_connect root:toor@localhost/metasploit3" try "db_connect root:toor@127.0.0.1/metasploit3" or "db_connect root:toor@(Your_Network_IP_Address_Here)/metasploit3". Hope that helps. :)