conerting a port of sqlite to C# into OOP