set up mongoose and model attrs