Add database name to Exception message.
Make R::cell return NULL in case of Exception.
Added static version of setUseNullFlag.
Added countOwn, countShared and countRelated.