refactor Rpc classes. add file index in DB
refactor sync
Merge pull request #303 from matiu/feature/refactor-rpc-classes

Feature/refactor rpc classes