Using server.query() syntax for heartbeat