init the database and simple app