fix remove deprecated call
refactor unnecessary call
refactor DB config in settings
other refactors