(c#) a component help to wirte log on local and database