begining work for rdb saving of TAVG