add db class and settings