test code for make sure mongodb is working