added a helper method: DBClient::isRecordExisting().