Normally, you query data from database then render to JSON and return to client, and you might want to