More efficient:
Replace `sync_sessions.order_by("-timestamp")[0].timestamp` with `sync_sessions.aggregate(Max("timestamp"))["timestamp__max"]`