Add key borders for getDataByCriteria methods