C# database implementation to delete the code