Automatically convert namespaces to lowercase when used as name for ES index.
Use collection as mapping, database as index name for ES.
some improvements
Remove unused import.