create app and sql