refactored to use new schema-creation syntax