fix db.php and localization