Preparing Record::find() function