start json/database method
build on database method, now returns variable formats and inputs