pass request object into get_record