updated apis for db_iface and parser code to allow for more generic
processing of json data.