Restored initdb function