Update BaseDb.php