generic model, DBException

hide debug button when not debuggin