Bugfix: set_function and use_function cannot be null, however the script directly sets the values to NULL, causing SQL errors.