fixed a postgres error
cleanup method was running as 'less than yesterday', i.e. two days back