add time parameters when get sentiment data from db