updated contentdb trigger code