Setup db and json output