Implements automatic backups of the data in Firebase