Update database.php

Mongo class instantiation is deprecated.
See: http://php.net/manual/mongo.construct.php
Merge pull request #44 from semalead/patch-1

Replace use of deprecated Mongo constructor with MongoClient constructor.