Fix config copy (uses single insert)

Fixed the config copy functionality to use single insert.