Now db.query() uses def.reject(err) instead of throwing err.