min / max working (with rustsqlite fork)