Update db.js

Reflect mode: 'a' in DB.query() method