completed database lib for mongo
clearing prev lib