Added support for restoring records with their own DB connections when no base connection exists

Fixes #149