Updated device repo date functions
Improved device logging for existing bad records