There are three ways to achieve this.
(a) You create a db-bound form. (not browser compatible)
(b) You write your own web service.
(c) You use something like DBXL to map the data.
This previous discussion covers b and c:
http://www.infopathdev.com/forums/p/15068/53411.aspx#53411
Good luck!