avoid inserting empty docs into db
convert dbrefs into mongodocuments when accessed