Add LINQ to SQL repository, refactor repositories and enhance WPF client