Functional tests for registers + DBMS independent ref_no setting

 * Added functional tests for Registers: Baptism, Confirmation,
 	First Communion, Banns, Marriage, Death
 * Made ref_no computation DBMS independent