first try in adding function "rename"
almost working. Database yields error.
To be debugged...