allow using  db_host parameter in conf.py file and get_backup issue fixed

I have added a parameter db_host in conf.py file and use it in those files in order to be able to use a MySQL database on another server.

I have also noted that the method get_backup didn't work when there were already some backup files so I fixed it.