Added ip back into log_download SQL as it got lost somehow