Added base `collection.distinct` function
added scratch folder and db to .gitignore