Start refactoring for litecoin and different database adapters