history: use db exceptions and parameters