DB download script, start work on queries