add/save records into two tables

You may enable Debug and check HTTP response to see the error in more detail.