made db and alerts async