Changed the fetch type in db.php