db setting and syncdb