only send data if there is a connection
rrdtool: adding db method