change callback to angular promise

two main advantages:

- you can chain or wait several callback and fire when all query is completed ex:
```js
$q.all([$scope.db.selectAll("user"), $scope.db.selectAll("comments")].then(function(queryResults)){
}
```
- with $q (angular promise)  you dont need $scope.apply()