Update network-functions.sh

Added network db get and update functions