DB for term statistics