Add two SQL indexes
Implement /latest record