Fixed mysql wait_timeout error in update_albums function.