Merge pull request #1 from nitrog7/master

Merge nitrog7 updates in my fork
Update db.js

Reflect mode: 'a' in DB.query() method
Merge pull request #5 from welcoMattic/master

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