Added task manager for periodic event triggering
Client now pings DB every 5 seconds