refactor insertData into its own function in preparation for udp support
refactor insertData into its own function in preparation for udp support

mnutt/hummingbird,ryana/sg-stats,ramr/openshift-hummingbird-example,ryana/sg-stats,soeffing/tracking_pixel,ramr/openshift-hummingbird-example,mnutt/hummingbird,soeffing/tracking_pixel,umaxfun/hummingbird,umaxfun/hummingbird,umaxfun/hummingbird,mnutt/hummingbird,ramr/openshift-hummingbird-example