hosting: implement backups for databases

Also, fix postgresql database creation and encoding issues