There is an ODBC package for the Ruby DBI module available, or you can try to use the ODBC binding for Ruby, which also includes a Win32 binary.
Here an example that uses RDI (stolen from here):
require 'DBI'
# make an ODBC connection
conn = DBI.connect('DBI:ODBC:datasource','your_username','your_password')
# returns a list of the table names from your database
conn.tables
# returns an array with the resultset from your query
rs = conn.select_all('SELECT * FROM TheTable')
(ODBC datasources can be defined using the ODBC Administrator available via Control Panel/Administrative Tools.)
For e-mailing I would suggest you simply use the standard mailing capabilities of Ruby and connect to your Exchange Server through SMTP.
I cannot recommend you a Ruby IDE, though, as I do my text-editing with VIM. :-) Other people might be able to give you a hint on that.