Refactor the DBI mocking for Pdf_Relation_Schema_test