fixed db to use definitions and not config class(deleted)