bridging the gap between Ruby and SQL