First of all, this does not involve two different actions. Both these "actions" can be done in the same page.
In the submit page, first fire the query which will update/insert the table in the database and then apply the cfmail tag or vice versa.
If you are still unable to get it let me know. I will provide the necessary assistance.
DENZIL