restructuring, added dbcontext for MSSQL