Remove the DB() makro, replace with logdebug() where sensible