13.5. Creating pattern databases