Crude hack to get leveldb working on a fresh instance, would be better placed in the db init to check if it's a new instance I think