new database and setSetting wrapper