Clean up
Refresh relationship tables based on the actual values of the form