Add polling functionality to update dom whenever database changes; 2 second intervals