configure index and mysqli