Gzip the DB before uploading to the server.
Add template filter for rendering json objects.