async function dropDeletedTables(incomingTables) {
  const existingTables = await saltcorn.data.models.Table.find();
  for (const table of existingTables) {
    if (
      table.name !== "users" &&
      !incomingTables.find((row) => row.id === table.id)
    ) {
      await saltcorn.data.db.query(
        `DROP TABLE "${saltcorn.data.db.sqlsanitize(table.name)}"`
      );
    }
  }
}
drop tables that are no longer in the 'tables.json' file
the server db uses a serial (with postgres), so checking ids should suffice