Added database handling in announcements.