added check for exist recortds in base