Added a line to convert database output to JSON when finding Users with Whens