Fixed reuse SqlParameter error & duplicate key exception