initial build of the level db