Update Db.class.php

manage connection string from the database itself.