Updated find_or_create_by to use hash structure