Comment fix and gitignore

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