Refactor initdb.js (arranging)
Re-refactor initdb.js (arranging)