Wraps nedb with functions that return promises.