Fixed SQLException when gfetting data from MySQL & Added a save check