update relations, test mongodb integration