implement Model for use on MongoDB