Unit test for the ratings db. and updated ratings.js to include DeleteAll and Close connection method