Core/Misc: Remove some calls to const_cast
Core/Misc: Always state what columns are affected by MySQL statements
Core/Misc: Remove using directive from header files (It will eventually lead to name collisions)
Core/Misc: Some changes to minimize differences with 4.3.4 branch