Adding model common_functions.py, for now used mainly by customer.py controller