fixes for pulling data out of DB with empty sets, lists, dict