postgresql 7.2 entry_date > current_timestamp - interval '$num_days days'