add nodelevel field and the empty db.