But it displays the action page? How are you doing the database update? Database Update server behaviors would need to be applied on the action page as well. Anything that reacts to the form contents, validation, database updates, emails need to be applied on the Action page of the form.
Did you say you had it working when it submitted to itself? If so, just cut and paste all of the code above the <html> and put that on the action page of the form instead.