MLDB: store the application instance in the context variable