Writing to mongodb + no angular errors