make sure to reset database total_time and send db times to graphite in production modes