create app and database setting