Added support for index creation

Signed-off-by: Rodolfo Cartas <rodolfo@blimp.mx>