The only module that deals with W3C schemas is Andy Wardley's XML::Schema, which is not available anywhere (I guess you can contact Andy if you need it). And in any case it does not parse W3C shemas, so you are really out of luck!.
That said you have a couple of options:
- treat the schema as just XML and write the appropriate code to generate the data base. This is probably quite difficult if you want to be really general, but I am sure lots of people would be interested by a module that does this. If you feel like contibuting to CPAN, here is your chance!
- convert the schema to a DTD (there are tools for this, such as XML Authority, look at the DTD/Schema Editors list for other alternatives) and proceed from there with a module that understands DTDs (XML::Parser, XML::DOM, probably XML::XPath), easier but DTDs might not suit your purpose as they don't have the content typing features that W3C schemas offer,
- use schematron (with XML::Schematron), an alternate XML schema system, I don't know that much about it but you might want to investigate it.