Add debuging output
Remove obsolete call to check_services
Remove similar_queries; replace get_records with col.find call to avoid transient DAS misbehavior under high load