flash can't connect directly to a database without useing some sort of scripting, like php,asp,cmfl...
all of these run on a web server. so your exe would still have to contact a script somewhere. if this is on a windows box it means you would need personal web server installed on that box. and one of the above mentioned technologies running on that web server.
what the hell was i thinking?