successfully writes to database, timestamp broken