Remove/replace deprecated code

In this pull request:
 - data.js uses mod structure
 - db.execute() -> db.exec() in server/app.js
 - res.send(200, { ... }) -> res.send({ ... });
 - res.send(NUMBER, { ... }) -> res.status(NUMBER).send({ ... });