Fixed pattern matching statements when getting data from the database in introduction protocol.