added indexes to tables