Add missing db.commit in initdb.