Let postgres filter timestamps rather than doing it in Rust