Remove unused fields from db