Replaced sql.DB with publicrecord struct.