sensor logging database