pub fn insert_pattern( conn: &Connection, pattern: &Pattern, ) -> Result<(), CoreError>
Insert a new pattern into the database.