added database backup functionality