Renamed a massive amount of misnamed variables in and out of SQL statements