Mysql Null Checks and Zip File Fix