Add times to database.