Heavily refactored DataAccess registration.