Refactored DbContext through IRepository interface