updating database in c# from arduino

i tried to update my c# database from Arduino, so the data from arduino can be readed but not saved in the database. and also the if condition are not properly working as I want. therefore I use Microsoft visual studio 2010.
thank you I need your help plzzz

i tried to update my c# database

C# is a programming language. It is not a database system.

thank you I need your help

More than you know.

You have some Arduino code that you didn't show. It is doing something that you didn't explain.

You have some C# code that you didn't show. It is doing something that you didn't explain.

Somehow, what it is doing is not what you want, but it isn't clear what you want.