Add new database and change mainPage