Updated database to store time.