Chorus is an analysis and rewriting tool for relational queries. We have used Chorus to analyze large sets of SQL queries to determine usage patterns, and also to implement differential privacy. By rewriting the query itself to return a differentially private result, Chorus enables a number of different differential privacy mechanisms without requiring changes to the database engine.