dbname bug fix