You can't have an ODBC-type connection to CUCM's database.
What there is, is a SOAP based API which allows you to execute SQL commands against the database.
For details, take at look at the Cisco AXL developer site:
http://developer.cisco.com/web/axl
One of the documents in there, is the CUCM Database schema.
GTG
Please rate all helpful posts.