fixed initialization so that indexeddb stores broadcast when ready. started working on alert system