handled the case when either the commits, tests, initTestPQ tables are empty. Currently it does not crash the server.
added the handling code for empty databases.
Added nicer and more clear  print statments when the tables are empty