Adding database extension support to schema.rb

Fixes issue #9193

I could use some extra eyeballs and feedback on this, I'm not entirely familiar with the schema dumper.

Thanks for your time