Added filter to skip COMPLETED tests on startup. Move code to query db for checking if ok to run more tests to server side