create_schema function