ported gridfs to the new uwsgi_get_app_id function