In this case `$schema` is a `Database` object. I will rename the variable to `$database` and add a unit for dump schema also.