select storage_type from cr_items where item_id=:item_id select exists(select 1 from cr_mime_types where mime_type = :mime_type)