link to leveldb properly for daemonlib.
multiple different ways of getting leveldb objects.
use only one leveldb_obj variable.