parsing query string as a bson object