Add SQL logging, convert Outcome.tier to Enum.