Made it possible to specify an sql.gz file as the file to restore from.

When that happens, ony db restore is supported, obviously. This was added
to make it possible to avoid disk thrashing with tarballs.
Made the apt-get update for percona and mariadb repositories conditional.