createSchema

Creates the key index when missing.