connect mongodb and query all