Refactoring the ORM

Refactored the ORM to use EF instead of ADO.Net