fixed issue of backup when database exists