Changed DB to be autoloaded based on config