Adding initial code for periodic saving of epgdb to disk