adding + interval '1 day' to table queries