changed direct access to the config var to use a getter
DB is now a static class
Debug is now a static class