JacSimilarity.py - Added some efficiency improvements. Fixed issue with random not being imported. Figured out that most of the problem is not creating an index on table being queried