Db should be initialize one and only once
removed multiple header write