The other script uses db.DatabaseError. Let's keep these consistent one way or the other.