First pass at the app foundation

are we missing a `var db = require(...)