Implement add_dbrecord_to_branch