define index for mongodb as string too