Comment fix and gitignore

The first patch will set the number of comments to zero instead of NULL when cleaning the database.
The second one will add a .gitignore.