added result_head and result_tail
modified schema
added empty strings to nil and some download variables to table