Update dbclass.php

Added Singletons design