Update database.php

Mongo class instantiation is deprecated.
See: http://php.net/manual/mongo.construct.php