new database class defined

db_class.php defined for database class