SQL: adjust formatting of Store->retrieve to

better align with XML report format
made extra_contact setting match report name

one-to-one mapping between setting and report metadata
test DB should not get uploaded
test fixes and error handling improvements