fixed bug in db.php