added time to database