started implementing storage based on levelDB