Hi --
If you are using InfoPath 2007, I encourage you to use C# for the 2007 object model instead of JScript. IP 2007 has VSTA, which is a much richer IDE than the script editor.
Here is an MSDN article on connecting to an Access Database via C# that might help you.
Re-reading your post, however, I see you also want to be able to retrieve records. Mightn't it be easier to use InfoPath's built in data connections and base your form off the DB you want to be able to submit / retrieve from?