Add leveldb to package.json.
Do synchronous operations outside async map

To prevent "Maximum call stack size exceeded" warnings