change db schema to mode 0, and initial the home page