Implemented ldb storage
Refactored to storage.py