It would be nice to know whether a xap is being run in either the stage or local studio to make it easier to connect to a different database.
if (this.api.env === 'studio')
db = 'dev';
else if (this.api.env === 'stage')
db = 'prod';
or something similar?