database.database_connection: Fix _copy_exceptions