Fix db initialization error.