Add has_subcat to gallery table