fix dbname problem