Convert to c#/sql and dapper. Done. :D
C# is not the best language for concurrency; Ada is much better.