Added a debug option
Changed database organization to better handle network membership