Correct Max Subquery, Datatype correction And ADD dump