auto db init fixing