updated models to use id instead of _id