fix typo and database settings