updated repo to use unit of work pattern.