updated object definitions to use Schema.Types.ObjectId instead of String, where appropriate