Make userdata database connection more robust.
Support for article cloning, improved handling of templates.