fixes a bug regarding indexes.

There was a bug regarding the creation of the index of the Day model.
Merge pull request #51 from AEHO/bug/workout-index

fixes a bug regarding indexes, adds runtests.sh