Fix circular ref, better error logging for Mongoose