added methods to insert a network into the database
inserted new tables into database
changed the way in which networks are saved in the database and nearly finished the methods to import networks from the database