@cheekyprogrammer sent me on the right route.
It appears that you have to add an RLS policy for the database to work. Here is how to do that:
Authentication > Policies
.Create Policy
. Press that.INSERT
or DELETE
.And that's it. Now your project should work properly.