Changed leveldb to work with components
Changed to support components