* added and tested record_exists() function