added self generated index, TODO: dont use dynamodb use something else