Originally written for Gudagi.com; a simple SQL interface to reduce query writing errors at a slight cost of performance.