added local sql server and changed repository pattern