Passing the database to main function as well as the test collection