Update database.php

Updated Database Object for compliance with the Singleton collector
Merge branch 'master' of https://github.com/Noramarth/Twinker