moved data access and model to separate C# library