Init

xdm.init.db()
xdm.init.postDB()

mostly plugin and common init

xdm.init.preDB(app_path, datadir)
xdm.init.schedule()