Move FTP, JSON, and MySQL operations into their respective classes.