Adding timing stats to DB stores.

Reviewed at https://reviews.apache.org/r/25897/