Base repository added
Refactoring repositories
Some logging added