core: Fix Postgres bufferActivities() query typo