implement query method with condition param, make simple performance tests, refactor bson convert functions