How to maintain record history - Supabase