Set same database setting to the flask app.