title: metasploit can't use default msf3 to connect
body: <p>I install metasploit v4 in ubuntu 14.04(LTS) in /opt/metasploit. And I install postgresql too. I am a very fresh to metasploit and postgresql. I start metasploit, but I can't connect to database, so I change this file /opt/metasploit/apps/pro/ui/config/database.yml, I just only change password to "testtest", and file content is:</p>
  
  <pre><code>development:
       adapter: "postgresql"
       database: "msf3"
       username: "msf3"
       password: "testtest"
       port: 7337
       host: "localhost"
       pool: 256
       timeout: 5
  
    production:
      adapter: "postgresql"
      database: "msf3"
      username: "msf3"
      password: "testtest"
      port: 7337
      host: "localhost"
      pool: 256
      timeout: 5
  </code></pre>
  
  <p>so I do this:</p>
  
  <pre><code>service postgresql restart
  service metasploit restart
  </code></pre>
  
  <p>and those execute successfully. I run "msfconsole", then get "msf>", I run this:</p>
  
  <pre><code>msf&gt; db_connect msf3:testtest@127.0.0.1/msf3
  msf&gt; db_stats
  [*] postgresql selected, no connection
  </code></pre>
  
  <p>I don't know what happens, so I run msfconsole again, and I get this:</p>
  
  <pre><code>[-] Failed to connect to the database: FATAL:  password authentication failed for user "msf3"
  </code></pre>
  
  <p>I can use postgres to create new user and database, and then I use db_connect to connect. But every time, I must run db_connect again. So I think metasploit use msf3 as default as user and database. I want to connect to msf3. What should I do?</p>