in_memory database refactoring: Allow users to filter posts by time