Refactored app.js; Added new config options; Only querying denormalized tables for grids