fix errors of dbname