async fn bulk_upsert_objects(pool: &PgPool, objects: &[ObjectRow]) -> Result<()>
Inserts all objects into the database, or updates them if they already exist.