Add dbm class and debug