moving_average function

Moving average for values in an mpathsenser database