added db2gson() function to convert DB directly into json file using
streaming generator (no String limitation)