Change reference to dbname to what is used.