Add indices to database (finally).