Adding in the db idle timeout. Returning results with gzip content encoding.