Calculate keyword activity in DB