Implemented handling of endpoints parameter in join_network()
Fixed join_network() database method not updating existing entries