added support for secondary indices
make foreign keys use secondary indices
Merge pull request #5 from floridoo/indices

Add support for secondary indices