Updated network Loop and Added Database Skeleton
Changed Debug code to allow for local testing