Just before first use of db.