Change datatype of tumblr_type_id
Fixing up bad logic