mongodb insert with ngResource