message: use db manager instead of withPgClient
diff: -import { Helpers, CronJob } from 'graphile-worker';
  +import { Helpers } from 'graphile-worker';
  import * as Sentry from '@sentry/node';
  +import { inject } from '@cardstack/di';
  /**
  * Meant to be used as a cron job. Deletes week-old sent notifications
  */
  export default class RemoveOldSentNotifications {
  - async perform(payload: CronJob['payload'], helpers: Helpers) {
  + private databaseManager = inject('database-manager', { as: 'databaseManager' });
  + async perform(payload: any, helpers: Helpers) {
  try {
  // keep cron-specific payload properties optional in case we decide to run this job manually
  if (payload._cron)
  @@ -13,7 +15,8 @@ export default class RemoveOldSentNotifications {
  `Running task to remove old sent notifications scheduled for ISO timestamp: ${payload._cron.ts}`
  );
  - await helpers.withPgClient(async (db) => {
  + let db = await this.databaseManager.getClient();
  +
  const {
  rows: [{ timestamp: oldestNotificationTimestamp }],
  } = await db.query(`
  @@ -24,12 +27,9 @@ export default class RemoveOldSentNotifications {
  `Will delete notifications sent before ISO timestamp: ${new Date(oldestNotificationTimestamp).toISOString()}`
  );
  - await db.query(
  - `DELETE FROM sent_push_notifications WHERE created_at < (NOW() - INTERVAL '1 WEEK')::timestamp;`
  - );
  + await db.query(`DELETE FROM sent_push_notifications WHERE created_at < (NOW() - INTERVAL '1 WEEK')::timestamp;`);
  helpers.logger.info('Deleted old sent notifications');
  - });
  } catch (e) {
  Sentry.captureException(e, {
  tags: {
  