Added periodic events

Change-Id: Ieb15db84b6ece293a4aa2dbc0d1ff0a7d8afde94
(cherry picked from commit d4b92e3)
Connect DB implementation with DB interface

Change-Id: I975a2f7346a243a07468375e2f007c2a474f5c66
(cherry picked from commit 43ff6e9)