script interpreter for finding record by id