You can find how to read the blockchain leveldb (format and meaning of the keys) here: What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?What are the keys used in the blockchain levelDB (ie what are the key:value pairs)?
no idea (yet) for the UTXO :-)