bit o debug stuff in the DB rotuines