create database and init index page