Adding a second sample with a database system based on the pattern