Fix model index coffeescript template

Fix Incorrect check to ignore index from import
Fix invalid coffeescript syntax
Add missing db variable definition
Correct Mistake in file check
Merge pull request #56 from raldred/master

Fix & tidy coffeescript mvc model index template