Use intermediate db.