move db code to main dir
move net code to main dir
merge send/recv code into service