moved dbcontext to a data layer