Modified PopCon to allow output database different from reference database