first part of dbcontext setup