adds mongoose extends to schemes