cleanup setting.js, added database:null support