optimised editing a customer, number of sql queries greatly reduced