Working with timing, still need to read config and have a bug. Some records are erased from memory before inserted. Look into a go routine