started adding json-formatted output for some database queries