Create mongodb connection, saving directives, check for already existent words