modify db.php for encoding