better db initialization try to fight the database is locked problem