fix typo and db migrate