System inventory, sales and purchases in C# and SQL Server