fixed db init