Network and database2

Server complete (i hope).