updated the find_or_create by to the active record syntax