Deletes what has expired and seeds the first admin, each time connection.ts opens the database.
f
runStartupTasks(db: DatabaseSync): Promise<void>
Runs after the migrations, each time the server starts. It deletes used or
expired reset tokens, invites past their validity, and attachments nothing
links to or whose resource is gone. On an instance with no users, it creates
the user admin with the password admin, which whoever installs it must
change.
Usage
import * as mod from "api/db/startup.ts";