First pass at the app foundation

The `db = require` can be found on Line 7