Some more fancy restructuring.
Added MSSQLRepository, some restructuring.