Added support for restoring records with their own DB connections