Repository setup and entity framework initialization