mongodb block: Use promise for connection