Update deploy script to remove stale images and restart the mysql container if it has been stopped