Issue #146 Export and import data

Export data from database to XML.
#146 Problem with Mysql
Adding properties when import documents
Offset is undefined
Add unique key on Pgsql database tables
Export / import with backup module

Add routes to upload and download
Edit template
Refactoring and bugs fix
Refactoring