savepoint...
first working UDF with schema migration