Update database.php

Updated Database Object for compliance with the Singleton collector