Serve data from database to client.