Es6 promise

Hey Aaron,
Just updated the dbjs to use es6 promise. Please check.