database initializer reorganized