Add an example API endpoint which returns JSON results of a DB query