added indexes to foreign keys. fixed committing only once problem
Merge pull request #25 from simensta/adding-indexes

added indexes to foreign keys. fixed committing only once problem