add db network lib and test file

Change-Id: I859a488e3a5c51b932132602d9146a916f403fac