possible fix to DB.php