Added implemementation of key-value pair database, using leveldb.

Author:yangyingchao, 2013-02-05