Implementing a singleton design pattern for database classes and updating some documentation.  see database.class.php and singleton.class.php