added '$' to newDb on line 571 -> $newDb