working with the database with a c sharp file