InitDB now accepts flags for opening LMDB

This helps us investing how flags affects a performance.