Fix market db call index