fix typo and rename config name to dbname