Added support for database encoding.
Added support for JSONP requests.