#388 Added database patch for removing obsolete attribute table
#388 Removed upgrade queries for which a patch has been created