adding first mongodb connection class and adding gitignore