Fixed timestamps in database, sorted History page