Save username and dbname.