1) Added logic to return branch and inet address
2) Pass branch and inet address to functions in main()
3) Update of values in the database now working