updated triggers to database