Fix database tracebacks in IT and servers running for over 8 hours

doh.