message: backend-common: tweak DatabaseManager
diff: @@ -312,8 +312,7 @@ export class DatabaseManager {
  return this.databaseCache.get(pluginId)!;
  }
  - const clientPromise = new Promise<Knex>(async (resolve, reject) => {
  - try {
  + const clientPromise = Promise.resolve().then(async () => {
  const pluginConfig = new ConfigReader(
  this.getConfigForPlugin(pluginId) as JsonObject,
  );
  @@ -354,10 +353,7 @@ export class DatabaseManager {
  databaseClientOverrides,
  );
  this.startKeepaliveLoop(pluginId, client);
  - resolve(client);
  - } catch (e) {
  - reject(e);
  - }
  + return client;
  });
  this.databaseCache.set(pluginId, clientPromise);
  