Creation of secondary indexes in database tables